/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.gephi.statistics.spi.path;

import java.util.HashMap;

public class LVertex {

    boolean wasVisited; // 是否遍历过
    public String label; // 节点名称
    HashMap<Integer, Integer> allVisitedList;// 节点已访问过的顶点

    public void setAllVisitedList(HashMap<Integer, Integer> allVisitedList) {
        this.allVisitedList = allVisitedList;
    }

    public HashMap<Integer, Integer> getAllVisitedList() {
        return allVisitedList;
    }

    public boolean WasVisited() {
        return wasVisited;
    }

    public void setWasVisited(boolean wasVisited) {
        this.wasVisited = wasVisited;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public LVertex(String lab) // constructor
    {
        label = lab;
        wasVisited = false;
    }

    public void setVisited(int j) {
        allVisitedList.put(j, 1);

    }

}
